#include"Logger.hpp"

//测试
int main()
{
    // std::string test = "hello world";
    //向显示器进行刷新
    // std::unique_ptr<LogStrategy> logger_ptr = std::make_unique<ConsoleLogStrategy>();
    // logger_ptr ->SyncLog(GetCurrenttime());
    // sleep(1);
    // logger_ptr ->SyncLog(GetCurrenttime());
    // logger_ptr ->SyncLog(GetCurrenttime());
    // logger_ptr ->SyncLog(GetCurrenttime());
    // logger_ptr ->SyncLog(GetCurrenttime());
    // sleep(1);

    // logger_ptr ->SyncLog(GetCurrenttime());
    // sleep(1);

    // logger_ptr ->SyncLog(GetCurrenttime());

    EnableConsoleLogStragety();

    LOG(LogLevel::DEBUG) << "hello world" << 100 << "hello Log!" << 9.9 ;
    LOG(LogLevel::INFO) << "hello world" << 100 << "hello Log!" << 9.9 ;
    LOG(LogLevel::ERROR) << "hello world" << 100 << "hello Log!" << 9.9 ;
    LOG(LogLevel::WARNING) << "hello world" << 100 << "hello Log!" << 9.9 ;

    return 0;
}